home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20020314-20021006
/
000130_fdc@columbia.edu_Fri Jun 7 09:56:41 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2002-10-06
|
2KB
|
65 lines
Article: 13429 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: monitor seriell port
Date: 7 Jun 2002 09:56:26 -0400
Organization: Columbia University
Lines: 48
Message-ID: <adqe2a$rvf$1@watsol.cc.columbia.edu>
References: <Pine.GSO.4.33.0206071031550.4979-100000@sqc097>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1023458188 13314 128.59.39.139 (7 Jun 2002 13:56:28 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 7 Jun 2002 13:56:28 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13429
In article <Pine.GSO.4.33.0206071031550.4979-100000@sqc097>,
Werner Lamping <nrjlamp@nrj.ericsson.se> wrote:
: I'm planning to monitor a seriell port which pipes out a lot lot
: of logging data and looking for suitable tool .
: I only have very little experience with kermit . But I'm wondering if it
: could do the job . It must be a kind of script which
:
: - open a a seriell port
:
Yes.
: - open a file
:
Yes.
: - read data writes it into the file
:
Yes.
: - after a certain time closes the file
:
Yes.
: - (preferably can zip the data before stored)
:
It can run an inferior process to do this.
: Can someone tell me if kermit can do it ????
:
Yes. Here's an outline:
log session filename ; Open log file
if fail exit 1 Can't open log
set carrier-watch off ; only if necessary
set line /dev/ttyS0 ; or other device name
if fail exit 1 Can't open device
set speed 38400 ; or other speed
set flow rts/cts ; or other flow-control method
input 11:59:59 STRING_THAT_WILL_NEVER_COME
close session
!zip -l filename.zip filename
exit
See the Kermit script library for more examples:
http://www.columbia.edu/kermit/ckscripts.html
- Frank